package com.bjpowernode.springboot.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.bjpowernode.springboot.service.UserService;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * CreateTime：2020/9/2 12:04
 */

@Service(interfaceClass = UserService.class, timeout = 5000, version = "1.0.0")
@Component
public class UserServiceImpl implements UserService {
    public Object getUserList(){
        List<Map<String,String>> list = new ArrayList<>();
        for (int i = 0; i < 5; i++) {
            Map<String,String> map = new HashMap<>();
            map.put("name","香蕉" + i + "号");
            map.put("id","000" + i);

            list.add(map);
        }

        return list;
    }
}
